#include<stdio.h>
#include<stdlib.h>

int main (){
    system("chcp 65001");

    int i = 1;
    int sum_1 = 0;
    int sum_2 = 0;
    
    while(i <= 100){    
        if(i % 2 == 0){
            sum_1 = sum_1 + i;
        }
        i++;
    }

    printf("%d\n",i);
    printf("1到100中所有偶数的和为:%d\n",sum_1);

    i = 1;
    do{
        if(i % 2 == 0){
            sum_2 = sum_2 + i;
        }
        i++;
    }
    while(i <= 100);
    
    printf("1到100中所有偶数的和为:%d\n",sum_2);



}